<template>
	<div class="am-g">
	  <div class="am-u-md-8 am-u-sm-centered">
	    <form class="am-form">
	      <fieldset class="am-form-set">
	        <input v-model="userName" type="text" placeholder="请输入账号">
	        <input v-model="pas" type="text" placeholder="请输入密码">
	      </fieldset>
	      <div @click="login" type="submit" class="am-btn am-btn-primary am-btn-block">登录</div>
	    </form>
	  </div>
	</div>
</template>
<script>
	export default{
		data:function(){
			return {
				userName:"",
				pas:""
			}
		},
		methods:{
			login:function(){
				alert("执行登录!您输入的账号："+this.userName+"密码："+this.pas);
			}
		}
	}
</script>